{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>商家销量</strong></li>
	</ol>
</div>
<div class="ibox float-e-margins">
	<div class="ibox-content">
		<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('select')}">	
			<div class="form-group">
				商家名称<input type="text" id="store_name" name="store_name" value="" placeholder="请输入商家名称" class="bank" />				
				<span ><button type="submit" class="btn btn-sm btn-primary"> 查询</button> </span>				
			</div>
		</from>
		<div class="hr-line-dashed"></div>
		<div class="example-wrap">
			<div class="example">
				<form method="post" action="{:url('index')}">
					<table class="table table-bordered table-hover">
						<thead>
							<tr class="long-th">

								<th>商家名称</th>
								<th>销售量</th>
								<th>金额</th>
								<th>排名</th>
							</tr>
						</thead>
						{volist name="list" id='ad' key="k"}
						<thead>
							<tr class="long-td">

								<td>{$ad.store_name}</td>
								<td>{$ad.sales}</td>
								<td>{$ad.need_money}</td>
								<td>{$k}</td>
							</tr>
						</thead>
					{/volist}
				</form>
			</div>
		</div>
	</div>
</div>

<script src="__LIB__/datepicker/WdatePicker.js"></script>
{/block} {block name="script"}
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
}
</style>
{/block}